package builder.tree;

import java.util.HashMap;

public class DecisionNode extends Node{

	protected String value;
	private String decision;
	protected String attrName;
	private HashMap<String,Double> hesitation = new HashMap<String,Double>();

	public DecisionNode(String attrName2, String value2) {
		this.attrName = attrName2;
		this.value = value2;
	}
	
	public String getAttrName() {
		return attrName;
	}
	public String getDecision() {
		return decision;
	}

	public String getValue() {
		return this.value;
	}
	public void addDecision(String decision,double possibility){
		this.hesitation.put(decision, possibility);
	}
	
	public HashMap<String,Double> getHesitation() {
		return hesitation;
	}

}
